<FilesMatch "\.(inc|php~|php#|bak)$">
    Order deny,allow
    Deny from all
</FilesMatch>

<Files external_login.php>
    Order deny,allow
    Deny from all
    Allow from localhost
</Files>